;/* 	2012-9  Created by dezhi jiang
; *	xxxxxx   please added here
; */

    EXPORT  OS_CPU_SR_Save    
    EXPORT  OS_CPU_SR_Restore


;********************************************************************************************************
;                                      CODE GENERATION DIRECTIVES
;********************************************************************************************************

    AREA |.text|, CODE, READONLY, ALIGN=2
    THUMB
    REQUIRE8
    PRESERVE8

OS_CPU_SR_Save
    MRS     R0, PRIMASK     
    CPSID   I
    BX      LR

OS_CPU_SR_Restore
    MSR     PRIMASK, R0
    BX      LR

    END
